<?php 
	/**
	 * @TODO refactoring this code!
	 * make _img template and renderPartial in foreach
	 */
 ?>
<?php foreach($imgs as $i => $img) {?>
	<div id="deal_img_<?php echo $img->id ?>">
		<img width="180" style="margin: 0.2em 0 0.5em;" height="180" alt="image" src="/uploads/images/thumbnail_180_180_p/<?php echo $img->name ?>" />
		<a href="javascript: void(0);" title="Удалить" class="delete" onclick="deleteImg(<?php echo $img->id ?>)">
			<img alt="Удалить" src="/images/delete.png">
		</a>
	</div>
<?php } ?>
